package top.z.work.module.system.controller.route.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

@Data
@Accessors(chain = true)
@Schema(description = "系统管理 - 路由数据 VO")
public class SystemRouteVO {

    @Schema(description = "菜单主键", example = "1234")
    private Long    identity;
    @Schema(description = "上级菜单", example = "0")
    private Long    parent;
    @Schema(description = "菜单名称", example = "用户管理")
    private String  name;
    @Schema(description = "菜单图标", example = "UserRole")
    private String  icon;
    @Schema(description = "权限标识", example = "system:user:view")
    private String  authority;
    @Schema(description = "路由地址", example = "system/user/index")
    private String  path;
    @Schema(description = "路由组件", example = "system/user/index")
    private String  component;
    @Schema(description = "菜单类型(1.目录;2.菜单;3.按钮)", example = "2")
    private Integer type;
    @Schema(description = "菜单排序", example = "1")
    private Integer sort;
    @Schema(description = "显示状态(只有1.目录;2.菜单使用)", example = "1")
    private Integer visible;
    @Schema(description = "数据状态(0.正常;1.停用)", example = "0")
    private Integer status;

}
